package com.elective.courseselect.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.elective.courseselect.entity.UserEntity;
import com.elective.courseselect.entity.UserVo;
import com.elective.courseselect.utils.PageUtils;
import com.elective.courseselect.utils.R;

import java.util.Map;


/**
 * 
 *
 * @author lee
 * @email 943204006@qq.ccom
 * @date 2021-09-04 15:25:05
 */
public interface UserService extends IService<UserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R login(UserEntity user);

    UserEntity userInfo(Integer id);

    UserEntity insertUser(UserEntity user);

    UserVo searchUserInfos(Integer userId);

    JSONObject getMaxStuAndTeaAccount();

    R createAccount(JSONObject json);

    void delAccount(Integer[] userIds);
}

